home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / tree / tpsample < prev    next >
Text File  |  1993-09-01  |  3KB  |  107 lines

  1. \noindent
  2.  
  3. Here are some examples to illustrate the tpar program and the
  4. `T' triangle, `L' lexical, `O' omit, `M' mother, `D' daughter,
  5. and `P' phantom tree commands.
  6.  
  7. %%  For tty output, use
  8. %%     % tpar tpsample |tree |more
  9. %% or    % tpar -t tpsample |tree |more
  10. %% For TeX output, use
  11. %%     % tpar -t tpsample |tree -t >tpsample.tex
  12. %% or    % tpar -t tpsample |tree -u >tpsample.tex
  13.  
  14. This is from the man page:
  15.  
  16.  (ex8)    \tree \T S
  17.              every
  18.              good boy
  19.                      VP
  20.             \L V - does
  21.             \L A - fine
  22.  
  23. A couple of examples from McCawley's text:
  24.  
  25. p. 35
  26. (6)\tree -b2
  27. S[0]
  28.     S[1]
  29.     S[2]
  30.         NP\T - the terrorists
  31.         VP
  32.         V\L - shoot
  33.         NP\T - the hostage
  34.     n't
  35.     Adv\L - probably
  36.  
  37. The V' with `say' in this next example came out too wide, originally,
  38. because the two constituents following the V, the P' and NP, couldn't be
  39. put close enough together.  I wanted to lower the S[2] under the NP so
  40. it would go closer to the preceding P', so I've put a node with no name
  41. but with command Z between the NP and the S[2] below it.  The
  42. Z command does not do anything except hold a place in the tree;
  43. it's a little tricky.
  44.  
  45. p. 689
  46. (8)\tree
  47. S[0]
  48.   NP[x]
  49.     the
  50.     S[3]
  51.       NP - you
  52.       V'\T - send $x$ many Christmas\L - cards to your friends
  53.   S[1]
  54.     NP - it
  55.     V'
  56.       V\L - say
  57.       P'\T - in the Times Al.
  58.       NP
  59.        \Z
  60.         S[2]
  61.       NP\T - President R
  62.       V'\T
  63.         send more than\L - $x$ Christmas cards to\L - Republican supporters
  64.  
  65.  
  66. In this example from McCawley, p. 310, the V is made an unnatural
  67. mother of the Adv with the M and D commands, and the line that
  68. would have connected the Adv to the S is omitted with the O command.
  69. The original position of the Adv is marked with a phantom, to get the
  70. tree to look like something belongs here.
  71.  
  72. (6b) \tree
  73. V'
  74.   \M V
  75.     V\L - prove
  76.     ghost\P
  77.   NP
  78.     S\T - that the earth is round
  79.   \D\O Adv\L - conclusively
  80.  
  81. From McCawley, p. 423.  There are two side-by-side trees here, but
  82. the left one has omitted lines, so that all that is visible is
  83. `RNR' and the arrow.  The N-bar is connected to the S `who teach ...'
  84. with M and D commands, but the line connecting the S to its natural
  85. mother remains.  To get the line connecting the two N-bars to slant
  86. to the left, the P command is used to put a phantom constituent in
  87. the original position of the RNR'd S.  That first Z command is there
  88. just to hold a place in the tree.
  89.  
  90. (21) \tree
  91. \Z
  92.   \O - \O - RNR\O\L - ---$>$
  93.   NP
  94.     NP
  95.       Det\L - most
  96.       N'\M
  97.         N' - N\L - linguists
  98.     some room\P
  99.     and
  100.     NP
  101.       Det\L - almost\L - all
  102.       N'
  103.         N' - N\L - anthro-\L - pologists
  104.         S\D\T - who teach at\L - American\L - universities
  105.  
  106. \bye
  107.